package com.DHH.Entity.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类BaseUserGroup
 * 数据表base_tb_user_group
 * 用户组表
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "base_tb_user_group")
public class BaseUserGroup  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//父级组
	@NotNull(message = "父级组不能为空")
	private Integer parentId;
	//组名称
	@Length(max = 255, min = 0, message = "组名称长度为0-255个字符")
	private String groupName;
	//
	private Integer isDefault;
	//
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//
	private Integer disabled;


	public BaseUserGroup(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setParentId(Integer parentId){
		this.parentId=parentId;
	}

	public Integer getParentId(){
		return this.parentId;
	}
	public void setGroupName(String groupName){
		this.groupName=groupName;
	}

	public String getGroupName(){
		return this.groupName;
	}
	public void setIsDefault(Integer isDefault){
		this.isDefault=isDefault;
	}

	public Integer getIsDefault(){
		return this.isDefault;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}
	public void setDisabled(Integer disabled){
		this.disabled=disabled;
	}

	public Integer getDisabled(){
		return this.disabled;
	}


}
